package com.antrice.website.controller.home;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.antrice.website.controller.BaseController;


/** 
 * @ClassName: HomeController 
 * @Description: 网站首页
 * @author  wangtq 
 * @date 2016年6月1日 上午11:00
 *  
 */

@Controller
@RequestMapping("downloadapp")
public class DownloadApp extends BaseController {
   
    
    
    /**
	 * APP下载页展示
	 */
	@RequestMapping("index")
    public ModelAndView index(HttpServletRequest httpRequest, HttpServletResponse response) {
		ModelAndView mav = getModelAndView("download/downloadIndex",httpRequest);
		mav.addObject("name", "测试问题");
        return mav;
    }
	/**
	 * APP下载页展示
	 */
	@RequestMapping("ios")
    public ModelAndView ios(HttpServletRequest httpRequest, HttpServletResponse response,String type) {
		ModelAndView mav =  getModelAndView("download/iosPc",httpRequest);
		if("app".equals(type)){
			mav =  getModelAndView("download/iosApp",httpRequest);
		}
		mav.addObject("name", "测试问题");
        return mav;
    }	
	
    
	
}
